package edu.poly.game.board.impl;

import edu.poly.game.board.GameBoard;
import edu.poly.game.util.Dimension;

/**
 * java factory pattern, lose coupling between two objects using factory
 * @author kevint
 *
 */
public class GameBoardFactory {
	public static GameBoard getGameBoard(final Dimension dim) {
		if(dim == null) {
			return null;
		}
		SquareGameBoard squareBoard = new SquareGameBoard(dim.getWidth());
		return squareBoard;
	}
}
